home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / sbin_-_Static_Binary_Files / IPFWADM < prev    next >
Text File  |  1999-09-17  |  532b  |  14 lines

  1. #!/bin/sh
  2. #
  3. # ipfwadm-2.3.0 is used for 2.0.x kernels, while ipchains is used for newer
  4. # kernels.  This shell script determines which kernel version is running and
  5. # calls ipfwadm-2.3.0 (if the kernel is 2.0.x), or ipfwadm-wrapper (if the
  6. # kernel is 2.1.x or 2.2.x).  ipfwadm-wrapper is another script which
  7. # accepts ipfwadm syntax and makes the equivalent calls to ipchains.
  8.  
  9. if [ "`uname -r | cut -d . -f 1-2`" = "2.0" ]; then # 2.0 kernel
  10.   /sbin/ipfwadm-2.3.0 $*
  11. else # probably a newer kernel
  12.   /sbin/ipfwadm-wrapper $* 
  13. fi
  14.